<template>
	<view class="text-center padding">
		<block v-for='(item,index) in patientImage' :key='index'>
			<image :src="item" style="max-height: 72vh;" class="margin-top" mode="widthFix"
				@click="previewImage(index)"></image>
		</block>
	</view>
</template>

<script>
	export default {
		onLoad(option) {
			// 
			if (option?.patientImage) {
				this.patientImage = option.patientImage.split(",");
			} else {
				uni.showToast({
					title: '无原始处方数据',
					icon: 'none'
				});
			}
		},
		data() {
			return {
				patientImage: []
			}
		},
		methods: {
			previewImage(index) {
				// 预览图片
				uni.previewImage({
					urls: this.patientImage,
					current:index
				});
			}
		}
	}
</script>

<style>

</style>